package xyz.hubery.service;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import xyz.hubery.domain.UserBank;
import xyz.hubery.dto.UserBankDTO;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserBankMappers {

    UserBankMappers INSTANCE = Mappers.getMapper(UserBankMappers.class);

    UserBank dtoToEntity(UserBankDTO dto);

    UserBankDTO entityToDto(UserBank entity);

    List<UserBank> dtoToEntity(List<UserBankDTO> dto);

    List<UserBankDTO> entityToDto(List<UserBank> entity);


}
